{% extends "WebMainSiteBundle:Web:layout.html.twig" %}
{% block page_header %}
    <div class="page-header">
        <div class="container">
            <div class="row">
                <div class="col-md-7">
                    <h1>{{ title }}</h1>
                </div>
                <div class="col-md-5">
                    <ol class="breadcrumb pull-right">
                        <li><a href="{{ path("WebIndex") }}">主页</a></li>
                        <li><a href="{{ path("WebUserIndex") }}">用户中心</a></li>
                        <li class="active">{{ title }}</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block main %}
    <section class="content content-light  blog">
        <div class="container">
            <div class="row">
                <!-- sidebar -->
                <aside class="col-md-3" role="complementary">
                    {% block user_side %}
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 私人空间</h4>
                            <nav>
                                <ul>
                                    <li><a {% if  app.request.requestUri == path("WebUserMessages")  %}class="cur"{% endif %} href="{{ path("WebUserMessages") }}"><i class="fa fa-caret-right"></i>消息中心</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebUserInfo")  %}class="cur"{% endif %} href="{{ path("WebUserInfo") }}"><i class="fa fa-caret-right"></i>基本资料</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebUserHeadPic")  %}class="cur"{% endif %} href="{{ path("WebUserHeadPic") }}"><i class="fa fa-caret-right"></i>修改头像</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebUserPassword")  %}class="cur"{% endif %} href="{{ path("WebUserPassword") }}"><i class="fa fa-caret-right"></i>修改密码</a></li>
                                </ul>
                            </nav>
                        </section>
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 学习课堂</h4>
                            <nav>
                                <ul>
                                    <li><a {% if  app.request.requestUri == path("WebCourseCollectMy")  %}class="cur"{% endif %}  href="{{ path("WebCourseCollectMy") }}"><i class="fa fa-caret-right"></i>我的关注</a></li>
                                </ul>
                            </nav>
                        </section>
                        {% if is_granted("ROLE_TEACHER") %}
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 教师办公室</h4>
                            <nav>
                                <ul>
                                    <li><a {% if  app.request.requestUri == path("WebCourseList")  %}class="cur"{% endif %} href="{{ path("WebCourseList") }}"><i class="fa fa-caret-right"></i>课程管理</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebCourseInfoAdd")  %}class="cur"{% endif %} href="{{ path("WebCourseInfoAdd") }}"><i class="fa fa-caret-right"></i>创建课程</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebTeacherEdit")  %}class="cur"{% endif %} href="{{ path("WebTeacherEdit") }}"><i class="fa fa-caret-right"></i>教师信息</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebTeacherSchool")  %}class="cur"{% endif %} href="{{ path("WebTeacherSchool") }}"><i class="fa fa-caret-right"></i>在任学校</a></li>
                                </ul>
                            </nav>
                        </section>
                        {% endif %}
                        {% if is_granted("ROLE_TEACHER_SCHOOL_MANAGER") %}
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 校长办公室</h4>
                            <nav>
                                <ul>
                                    <li><a {% if  app.request.requestUri == path("WebSchoolEdit")  %}class="cur"{% endif %} href="{{ path("WebSchoolEdit") }}"><i class="fa fa-caret-right"></i>学校管理</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebSchoolTeacherApply")  %}class="cur"{% endif %} href="{{ path("WebSchoolTeacherApply") }}"><i class="fa fa-caret-right"></i>教师申请</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebSchoolTeachers")  %}class="cur"{% endif %} href="{{ path("WebSchoolTeachers") }}"><i class="fa fa-caret-right"></i>教师管理</a></li>
                                    {#<li><a href="blog-list.htm"><i class="fa fa-caret-right"></i>教师管理</a></li>#}
                                </ul>
                            </nav>
                        </section>
                        {% endif %}
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 权限提升</h4>
                            <nav>
                                <ul>
                                    <li><a {% if  app.request.requestUri == path("WebTeacherApply")  %}class="cur"{% endif %} href="{{ path("WebTeacherApply") }}"><i class="fa fa-caret-right"></i>成为老师</a></li>
                                    <li><a {% if  app.request.requestUri == path("WebSchoolApply")  %}class="cur"{% endif %} href="{{ path("WebSchoolApply") }}"><i class="fa fa-caret-right"></i>学校入驻</a></li>
                                </ul>
                            </nav>
                        </section>
                        <section class="widget category">
                            <h4 class="yahei"><i class="fa fa-th-large"></i> 安全退出</h4>
                            <nav>
                                <ul>
                                    <li><a href="{{ path("Logout") }}"><i class="fa fa-caret-right"></i>安全退出</a></li>
                                </ul>
                            </nav>
                        </section>
                    {% endblock %}
                </aside>
                <!-- Blog post - center -->
                <div class="col-md-9">
                    {% block user_main %}
                        <!-- 信息盒子 -->
                        <div class="grey-box  author-box">
                            {#<h2>我的信息</h2>#}
                            <div class="row">
                                <div class="col-md-3">
                                    <img src="img/114x114.gif" class="img-rounded" alt="headPic" />
                                </div>
                                <div class="col-md-9">
                                    <strong>知更鸟管理员</strong> - <em>605499394@qq.com</em>
                                    <p>上次登录IP地址：192.168.1.1</p>
                                    <p>上次登录时间：2016.7.5</p>
                                </div>
                            </div>
                        </div>
                        <h2>近期学习课程</h2>
                        <div class="row">
                            {% for i in 1..9 %}
                                <article class="col-md-4 video-item">
                                    <a href="video.htm" class="video-prev video-prev-small"></a>
                                    <h3 class="video-title"><a href="video.htm">如何功课PHP中的各种结束难关</a></h3>
                                    <div class="row video-params">
                                        <div class="col-md-7">
                                            讲师: <b>李自成</b>
                                        </div>
                                        <div class="col-md-5 text-right">
                                            <b>102</b> <a href="#"><i class="fa fa-user"></i></a>
                                        </div>
                                    </div>
                                    <div class="row video-params">
                                        <div class="col-md-7">
                                            更新: <b>09.01</b>
                                        </div>
                                        <div class="col-md-5 text-right">
                                            <b>102</b> <a href="#"><i class="fa fa-heart"></i></a>
                                        </div>
                                    </div>
                                    <div class="row video-params">
                                        <div class="col-md-12">
                                            Category: <b>Drawing</b>
                                        </div>
                                    </div>
                                </article>
                            {% endfor %}
                        </div>
                    {% endblock %}
                </div>
            </div>
        </div>
    </section>
{% endblock %}